package com.student.enrollment.feign;

import com.student.common.entity.Result;
import com.student.common.entity.Course;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 课程服务Feign客户端
 * 
 * @author student
 * @date 2025
 */
@FeignClient(name = "course-service", url = "http://localhost:8004")
public interface CourseServiceClient {
    
    /**
     * 根据课程ID查询课程信息
     */
    @GetMapping("/course/{id}")
    Result<Course> getCourseById(@PathVariable("id") String courseId);
}
